﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Rung.EBook.UI
{
    internal static class UiHelper
    {
        internal static void TextBox_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
        {
            if (e.Modifiers == Keys.Control)
            {
                if (e.KeyCode == Keys.A)
                ((TextBox)sender).SelectAll();
            }
        }
    }

    internal delegate void WriteInfo(string msg, InfoType type);
    internal delegate void AppendInfo(string msg);
    internal delegate void ProgressBarReset(int max);
    internal delegate void ProgressBarIncreace();

    internal enum InfoType
    {
        Success,
        Process,
        Warning,
        Errer
    }
}
